<template>
    <!-- 学校基本信息 -->
    <div class="sub-content-info">
        <div class="title1">地震事件列表</div>

        <div class="yqlist wrap" style="height:100%;overflow-y:hidden;">
            <ul class="clearfix dizhenList">
                <li class="li-yq" style="width:13%;" v-if="lastCatalogDataList.length > 0">
                    <div class="yq" id="yq">{{lastCatalogDataList[lastCatalogDataList.length-1]['m']}}</div>
                </li>
                <li class="li-his" style="margin:5px 0 0 15px;padding-left:10px;width:80%;" v-if="lastCatalogDataList.length > 0">
                    <div class="his">
                        <div class="his-title">{{lastCatalogDataList[lastCatalogDataList.length-1]['o_time']}}</div>
                        <div class="his-name">{{lastCatalogDataList[lastCatalogDataList.length-1]['loc_name']}}</div>
                        <div class="his-info"><span>经纬度: {{lastCatalogDataList[lastCatalogDataList.length-1]['lon']}}</span>, <span>{{lastCatalogDataList[lastCatalogDataList.length-1]['lat']}}</span>,<span>深度: {{lastCatalogDataList[lastCatalogDataList.length-1]['depth']}}km</span>
                        </div>
                    </div>
                </li>

                <li class="li-yq" style="width:13%;" v-if="lastCatalogDataList.length > 1">
                    <div class="yq" id="yq">{{lastCatalogDataList[lastCatalogDataList.length-2]['m']}}</div>
                </li>
                <li class="li-his" style="margin:5px 0 0 15px;padding-left:10px;width:80%;" v-if="lastCatalogDataList.length > 1">
                    <div class="his">
                        <div class="his-title">{{lastCatalogDataList[lastCatalogDataList.length-2]['o_time']}}</div>
                        <div class="his-name">{{lastCatalogDataList[lastCatalogDataList.length-2]['loc_name']}}</div>
                        <div class="his-info"><span>经纬度: {{lastCatalogDataList[lastCatalogDataList.length-2]['lon']}}</span>, <span>{{lastCatalogDataList[lastCatalogDataList.length-2]['lat']}}</span>,<span>深度: {{lastCatalogDataList[lastCatalogDataList.length-2]['depth']}}km</span>
                        </div>
                    </div>
                </li>

                <li class="li-yq" style="width:13%;" v-if="lastCatalogDataList.length > 2">
                    <div class="yq" id="yq">{{lastCatalogDataList[lastCatalogDataList.length-3]['m']}}</div>
                </li>
                <li class="li-his" style="margin:5px 0 0 15px;padding-left:10px;width:80%;" v-if="lastCatalogDataList.length > 2">
                    <div class="his">
                        <div class="his-title">{{lastCatalogDataList[lastCatalogDataList.length-3]['o_time']}}</div>
                        <div class="his-name">{{lastCatalogDataList[lastCatalogDataList.length-3]['loc_name']}}</div>
                        <div class="his-info"><span>经纬度: {{lastCatalogDataList[lastCatalogDataList.length-3]['lon']}}</span>, <span>{{lastCatalogDataList[lastCatalogDataList.length-3]['lat']}}</span>,<span>深度: {{lastCatalogDataList[lastCatalogDataList.length-3]['depth']}}km</span>
                        </div>
                    </div>
                </li>

                <li class="li-yq" style="width:13%;" v-if="lastCatalogDataList.length > 3">
                    <div class="yq" id="yq">{{lastCatalogDataList[lastCatalogDataList.length-4]['m']}}</div>
                </li>
                <li class="li-his" style="margin:5px 0 0 15px;padding-left:10px;width:80%;" v-if="lastCatalogDataList.length > 3">
                    <div class="his">
                        <div class="his-title">{{lastCatalogDataList[lastCatalogDataList.length-4]['o_time']}}</div>
                        <div class="his-name">{{lastCatalogDataList[lastCatalogDataList.length-4]['loc_name']}}</div>
                        <div class="his-info"><span>经纬度: {{lastCatalogDataList[lastCatalogDataList.length-4]['lon']}}</span>, <span>{{lastCatalogDataList[lastCatalogDataList.length-4]['lat']}}</span>,<span>深度: {{lastCatalogDataList[lastCatalogDataList.length-4]['depth']}}km</span>
                        </div>
                    </div>
                </li>

                <li class="li-yq" style="width:13%;" v-if="lastCatalogDataList.length > 4">
                    <div class="yq" id="yq">{{lastCatalogDataList[lastCatalogDataList.length-5]['m']}}</div>
                </li>
                <li class="li-his" style="margin:5px 0 0 15px;padding-left:10px;width:80%;" v-if="lastCatalogDataList.length > 4">
                    <div class="his">
                        <div class="his-title">{{lastCatalogDataList[lastCatalogDataList.length-5]['o_time']}}</div>
                        <div class="his-name">{{lastCatalogDataList[lastCatalogDataList.length-5]['loc_name']}}</div>
                        <div class="his-info"><span>经纬度: {{lastCatalogDataList[lastCatalogDataList.length-5]['lon']}}</span>, <span>{{lastCatalogDataList[lastCatalogDataList.length-5]['lat']}}</span>,<span>深度: {{lastCatalogDataList[lastCatalogDataList.length-5]['depth']}}km</span>
                        </div>
                    </div>
                </li>


                
                
            </ul>
        </div>
    </div>
</template>
<script>
export default {
    name: 'eqList1',
    props:{
        lastCatalogDataList:{
            type:Array,  //类型判断
            default:[]    //默认值
        }
  },
    data() {
        return {
        }
    },
    methods: {

    },
    mounted() {

    },
}
</script>
<style>
.sub-content-info .title1{
	font-family: SourceHanSansCN-Bold;
	font-size: 18px;
	font-weight: normal;
	font-stretch: normal;
	line-height: 34px;
	letter-spacing: 1px;
	color: #b1eded;
	margin-top: 10px;
	background: url(@/assets/img/sub_title_bg.png);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	width: 300px;
	height: 38px;
  margin-bottom: 10px;
  padding-left: 10px;
}

/* 分割线 */
.divider {
    height: 1px;
    background-color: #528693;
    width: 100%;
}

@font-face{font-family:electronicFont;src:url(../../../assets/font/DS-DIGIT.TTF)}

li {
    list-style-type: none;
}

i {
    margin: 0px;
    padding: 0px;
    text-indent: 0px;
}

img {
    border: none;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: #399bff;
}

a.active,
a:focus {
    outline: none !important;
    text-decoration: none;
}

ol,
ul,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
    margin: 0
}

a:hover {
    color: #06c;
    text-decoration: none !important
}

html,
body {
    height: 100%;
}

.clearfix:after,
.clearfix:before {
    display: table;
    content: " "
}

.clearfix:after {
    clear: both
}

.pulll_left {
    float: left;
}

.pulll_right {
    float: right;
}

/*谷哥滚动条样式*/
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    position: absolute
}

::-webkit-scrollbar-thumb {
    background-color: #5bc0de
}

::-webkit-scrollbar-track {
    background-color: #ddd
}

/***/

.loading {
    position: fixed;
    left: 0;
    top: 0;
    font-size: 18px;
    z-index: 100000000;
    width: 100%;
    height: 100%;
    background: #1a1a1c;
    text-align: center;
}

.loadbox {
    position: absolute;
    width: 160px;
    height: 150px;
    color: #324e93;
    left: 50%;
    top: 50%;
    margin-top: -100px;
    margin-left: -75px;
}

.loadbox img {
    margin: 10px auto;
    display: block;
    width: 40px;
}



.mainbox {
    padding: 0 5px 0 5px;
    height: 90%
}

.mainbox>ul {
    margin-left: -.1rem;
    margin-right: -.1rem;
    height: 100%
}

.mainbox>ul>li {
    float: left;
    padding: 0 3px;
    height: 100%;
    width: 24%
}

.mainbox>ul>li:nth-child(2) {
    width: 52%
}

.boxall {
    padding: 0 .2rem .2rem .2rem;
    background: rgba(6, 48, 109, .5);
    position: relative;
    z-index: 10;
}

.alltitle {
    font-size: .2rem;
    color: #fff;
    line-height: .5rem;
    position: relative;
    padding-left: .15rem
}

.alltitle:before {
    position: absolute;
    height: .2rem;
    width: 4px;
    background: #49bcf7;
    border-radius: 5px;
    content: "";
    left: 0;
    top: 50%;
    margin-top: -.1rem;
}

.boxnav {
    height: calc(100% - .5rem);
}

.row>li {
    float: left;
    height: 100%;
}

.col-6 {
    width: 50%;
}

.col-2 {
    width: 20%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33333%;
}

.h100 {
    height: 100%;
}

.tit01 {
    text-align: center;
    color: white;
    font-size: .16rem;
    padding: .3rem 0 .05rem 0;
}

.piebox {
    height: calc(100% - .5rem);
    position: relative;
}

.paim li>span {
    width: .3rem;
    height: .3rem;
    text-align: center;
    line-height: .3rem;
    background: #878787;
    border-radius: .05rem;
    margin-right: .1rem;
    font-size: .16rem;
}

.paim li:nth-child(1)>span {
    background: #ed405d
}

.paim li:nth-child(2)>span {
    background: #f78c44
}

.paim li:nth-child(3)>span {
    background: #49bcf7
}

.paim li {
    display: flex;
    align-items: center;
    height: 20%;
}

.pmbar {
    position: relative;
    display: flex;
}

.pmbar span {
    background: linear-gradient(to right, #14b6ff, #9cefff);
    display: inline-block;
    vertical-align: middle;
    height: .15rem;
    border-radius: .5rem;
}

.pmbar i {
    line-height: .2rem;
    font-style: normal;
    padding-left: .1rem;
    color: #49bcf7
}

.pmnav {
    width: calc(100% - .5rem)
}

.pmnav p {
    color: #fff;
    opacity: .6;
    font-size: .15rem;
    padding-bottom: .05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sqzs {
    margin-right: .2rem;
}

.sqzs p {
    padding: .2rem 0;
    font-size: .22rem;
}

.sqzs h1 {
    height: calc(100% - .65rem);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    color: #fef000;
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
    font-weight: normal;
    letter-spacing: 2px;
    font-size: .85rem;
    justify-content: center;
    padding-bottom: .05rem;
}

.barnav span {
    text-align: center;
    color: #f7e80d;
    font-size: .24rem;
    padding-left: .1rem;
    line-height: .3rem;
}

.zaf {
    text-align: center;
}

.zaf p {
    justify-content: center
}

.zaf p img {
    width: .18rem;
    margin-right: 0;
    ;
}

.zaf span {
    color: #00d3ff;
    font-family: Impact;
    font-size: .35rem;
}

.zaf span i {
    font-style: normal;
    font-size: .18rem;
}


.yqlist li {
    float: left;
    padding: 10px 0;
    text-align: center;
    height: 100%;
}

.li-yq {
    width: 20%;
}

.li-his {
    width: 80%;
}

.yq {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-family: electronicFont;
    color: #fff32b;
}

.yqlist li span {
    opacity: .6;
    font-size: 14px;
}

.yq:before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: "";
    background: url(../../../assets/img/img1.png) center center;
    border-radius: 100px;
    background-size: 100% 100%;
    opacity: .3;
    left: 0;
    top: 0;
    /**animation: eqfirst2 30s infinite linear;*/
}

.yq:after {
    position: absolute;
    width: 86%;
    background: url(../../../assets/img/img2.png) center center;
    border-radius: 100px;
    background-size: 100% 100%;
    opacity: .3;
    height: 86%;
    content: "";
    left: 7%;
    top: 7%;
    /**animation: eqfirst 30s infinite linear;*/
}

@keyframes eqfirst {
    to {
        transform: rotate(-360deg)
    }
}

@keyframes eqfirst2 {
    to {
        transform: rotate(360deg)
    }
}

.new {
    height: 85%;
}

.new ul {
    height: 100%;
    float: left;
}

.new ul li {
    height: 19%;
}

.new-info {
    color: #ffffffd9;
    background: url(../../../assets/img/short.png);
    background-size: 100% 100%;
    padding: 6px 0 0 6px;
    width: 80%;
    font-size: .18rem;
}

.new-info ul li {
    height: 27px;
    line-height: 27px;
}

.li-his {
    margin-left: -5px;
}

.his {
    background: url(../../../assets/img/short1.png);
    width: 100%;
    height: 90px;
    background-size: 100% 100%;
    opacity: 1;
    color: #ffffff;
}

.his-title {
    text-align: left;
    padding: 5px 0 0 11px;
    font-size: 13px;
}

.his-name {
    text-align: left;
    margin: 13px 0 0 13px;
    font-size: 14px;
}

.his-info {
    text-align: left;
    margin: 5px 0 0 13px;
    color: #5fb5ff;
    font-size: 10px;
}



.wrap {
    height: 95%;
    overflow: hidden;
}

.str_wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.str_move {
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
    cursor: move;
}


/*修改滚动条样式*/
.yqlist::-webkit-scrollbar {
    width: 1px;
    height: 10px;
    /**/
}

.yqlist::-webkit-scrollbar-track {
    background: #042b65;

}

.yqlist::-webkit-scrollbar-thumb {
    background: #042b65;

}
</style>